﻿<%@ Page Title="" Language="C#" MasterPageFile="~/site.master" AutoEventWireup="true"
    CodeBehind="index.aspx.cs" Inherits="Icst.Leaflike.Web.index" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="main" runat="server">

<%if (_todaytree != null)
  {%>
    <h4 class="sectiontitle"><a href='<%="tree.htm?id="+_todaytree.tree_no%>' target="_blank">每日一树</a></h4>
    
    <table style="width:100%; margin-top:10px;">
    <tr>
        <td valign="top">
            <a href='<%="tree.htm?id="+_todaytree.tree_no%>' target="_blank">
                <img src='<%="trees/"+_todaytree.imagelink%>' alt='<%= _todaytree.tree_name %>' width="425" height="550" /></a>
        </td>
        <td valign="top" style="padding-left:20px">
            <h1>
                <a href='<%="tree.htm?id="+_todaytree.tree_no%>' target="_blank"><%= _todaytree.tree_name %></a></h1>
            <p>
                <%= _todaytree.description %>
            </p>
        </td>
    </tr>
    </table>
    <%} %>
 <%--   <iframe id="myiframe" src="<%=forum_home %>" style="width: 100%; border: none 0 red;"
        frameborder="0" scrolling="no" onload="javascript:fixheight(this)"></iframe>      --%> 
        
        <%if (_books != null)
          {%>
    <div class="section">
    <h4 class="sectiontitle"><a href="book.htm" target="_blank">推荐书籍</a></h4>
    <table style="width:100%">
             <% for (int j = 0, page = _books.Length / 1; j <= page; ++j)
              {%>
                  <tr>
                  
                  <%
                      for (int i = 1 * j; i < (j + 1) * 1 && i < _books.Length; ++i)
                  {
                      var book = _books[i];
        %>
        <td>
            <table style="margin-bottom:10px">
                <tr>
                    <td valign="top">
                        <h1>
                            <a href='<%=book.book_link1 %>' target="_blank">
                                <%= book.name %></a></h1>
                        <p>
                            <%= book.description%></p>
                    </td>
                    <td valign="top">
                        <a href='<%=book.book_link1 %>' target="_blank">
                            <img alt='<%=book.name %>' src='<%=book.cover_image %>' /></a>
                    </td>
                </tr>
            </table>
        </td>        
        <%}%>
        </tr>
        <%} %>
    </table>
    </div>
    <%} %>
</asp:Content>
